<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:c="http://java.sun.com/jsp/jstl/core">

    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link href="/RomaCommunityv1/resources/css/default.css" rel="stylesheet" type="text/css" />
        <link href="/RomaCommunityv1/resources/css/cssLayout.css" rel="stylesheet" type="text/css" />    
        <title>RoMa Community</title>
    </h:head>

    <h:body>
        <div id="top" class="top">
            <ui:insert name="top">
                <ul>
                    <li><a href="/RomaCommunityv1/index.jsf">Home</a></li>
                    <c:if test="${loginBean.loggedIn == false}">
                    <li><a href="/RomaCommunityv1/User/login.jsf">Login</a></li>
                    <li><a href="/RomaCommunityv1/User/register.jsf">Register</a></li>
                    </c:if>
                    <c:if test="${loginBean.loggedIn == true}">
                        <li><a href="/RomaCommunityv1/User/logout.jsf">Logout</a></li>
                    </c:if>
                    <c:if test="${loginBean.loggedIn == true}">
                    <li><a href="/RomaCommunityv1/User/profile.jsf">Profile</a></li>
                    <li><a href="/RomaCommunityv1/chat.jsf">Chat</a></li>
                    <li><a href="/RomaCommunityv1/User/finduser.jsf">Find User</a></li>
                    <li><a href="/RomaCommunityv1/PrivateMessage/listmessages.jsf">Messages</a></li>
                    </c:if>
                </ul>
                
                
                
            </ui:insert>
        </div>
        <div>
            <div id="left">
                <ui:insert name="left"></ui:insert>
            </div>
            <div id="content" class="left_content">
                <ui:insert name="content"></ui:insert>
            </div>
        </div>
    </h:body>

</html>
